package spring.cloud.tasks.tasks_assign_manager.database.service.impl;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;
import spring.cloud.tasks.tasks_assign_manager.database.entity.ZooKeeperClusterDto;
import spring.cloud.tasks.tasks_assign_manager.database.repository.ZooKeeperClusterDtoRepository;
import spring.cloud.tasks.tasks_assign_manager.database.service.ZooKeeperClusterDtoService;

import java.util.List;

@Service
public class ZooKeeperClusterDtoServiceImpl implements ZooKeeperClusterDtoService {

    @Autowired
    private ZooKeeperClusterDtoRepository zooKeeperClusterDtoRepository;


    @Transactional(readOnly = true)
    @Override
    public List<ZooKeeperClusterDto> getZooKeeperClusterInfoList() {
        return zooKeeperClusterDtoRepository.selectAll();
    }


}
